import request from '@/utils/request'
// 调用员工管理接口
export const getListAPI = (page, size) => {
  return request({
    url: '/sys/user',
    params: {
      page,
      size
    }
  })
}
// 删除员工接口
export const delDataAPI = id => request.delete(`/sys/user/${id}`)
// 添加员工接口
export const addPostAPI = data => request.post('/sys/user', data)
// excel批量导入员工接口
export const addsPostAPI = data => request.post('/sys/user/batch', data)
// 修改员工基本信息
export const saveUserPutAPI = data => request.put(`/sys/user/${data.id}`, data)
//  给员工分配角色
export const assignRolesApi = data => request.put('/sys/user/assignRoles', data)
